package com.ht.safe.entity;

import javax.persistence.CascadeType;
import javax.persistence.OneToMany;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: 薄成文 13-7-26 上午10:53
 * To change this template use File | Settings | File Templates.
 */
public class AreaGroup {

    /**
     * 名称
     */
    private String name;

    /**
     * 单向映射
     */
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "areaGroup")
    private List<Area> areas;

}
